package com.example.service;

import com.example.mapper.SysLogMapper;
import com.example.model.SysLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ISysLogServiceImpl implements ISysLogService {

    @Autowired
    private SysLogMapper sysLogMapper;

    @Override
    public void save(SysLog sysLog) {
        sysLogMapper.insert(sysLog);
    }

    @Override
    public List<SysLog> list() {
        return sysLogMapper.selectList(null);
    }
}
